package com.ruoyi.asset.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 出入库记录对象 asset_in_out
 *
 * @author yepanpan
 * @date 2024-12-24
 */
@Data
public class AssetInOut extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    public static final String TYPE_IN = "I";
    public static final String TYPE_OUT = "O";

    /** 自增长主键ID */
    private Long id;

    @Excel(name = "流程类型")
    private String flowType;

    /** 流程 */
    @Excel(name = "工单号")
    private String flowNum;
    private Long flowId;

    /** 出入库类型 */
    @Excel(name = "出入库类型", dictType = "asset_io_type")
    private String type;

    /** 资产分类 */
    @Excel(name = "资产分类")
    private String cateName;

    /** 资产编码 */
    @Excel(name = "资产编码")
    private String assetNum;

    /** 资产ID */
    private Long assetId;

    /** 操作人 */
    @Excel(name = "操作人")
    private String userName;
    private Long userId;

    /** 操作说明 */
    @Excel(name = "操作说明")
    private String content;

    /** 现场拍照 */
    private String imgs;

    /** 出库时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "出库时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date ioTime;

    /** 仓库 */
    @Excel(name = "仓库")
    private String houseName;
    private Long houseId;

}
